package IC.lir.instructions;

import java.util.Iterator;

public class StaticCallInstruction extends CallInstruction {
	
	private Label functionLb;
	
	//C'tor
	public StaticCallInstruction(Label functionLb, Register dst) {
		super(dst);
		this.functionLb = functionLb;
	}
	
	@Override
	public String toString() {
		StringBuffer buffer = new StringBuffer();
		buffer.append("StaticCall " + functionLb + "(");
		for (Iterator<Pair> iter = Arguments.iterator(); iter.hasNext(); ) {
			buffer.append(iter.next());
			if (iter.hasNext())
				buffer.append(", ");
		}
		buffer.append(")," + r);
		return buffer.toString();
	}

}